<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-purchaseInfo-edit">
            <input id="id" name="id" th:value="${purchaseInfo.id}"  type="hidden">
            <div class="form-group">	
                <label class="col-sm-3 control-label">名称：</label>
                <div class="col-sm-8">
                    <input id="name" name="name" th:value="${purchaseInfo.name}" class="form-control" type="text">
                </div>
            </div>
             <div class="form-group">	
                <label class="col-sm-3 control-label">图片：</label>
                <div class="col-sm-8">	
                	<label class="input-group-btn">
                        <input id="fileImage" type="file" name="pdfUrl" style="margin-left:-9999px; position: absolute;">
                        <span class="btn btn-default">选择文件</span>
                    </label>
                    <br/>
                   	<tr  th:each="image : ${images}">  
	                   	<td><img th:src="${image.url}" width="200px" height="200px"></td>
                    </tr>
                </div>
            </div>   
            <div class="form-group">	
                <label class="col-sm-3 control-label">logo：</label>
                <div class="col-sm-8">
                    <input id="logoUrl" name="logoUrl" th:value="${purchaseInfo.logoUrl}" class="form-control" type="text">
                </div>
            </div>  
            <div class="form-group">	
                <label class="col-sm-3 control-label">pdf地址：</label>
                <div class="col-sm-8">
                    <input id="pdfUrl" name="pdfUrl" th:value="${purchaseInfo.pdfUrl}" class="form-control" type="text">
                </div>
            </div>  
            <div class="form-group">	
                <label class="col-sm-3 control-label">导航地址：</label>
                <div class="col-sm-8">
                    <input id="navigatUrl" name="navigatUrl" th:value="${purchaseInfo.navigatUrl}" class="form-control" type="text">
                </div>
            </div>  
            <div class="form-group">	
                <label class="col-sm-3 control-label">联系电话：</label>
                <div class="col-sm-8">
                    <input id="contactNumber" name="contactNumber" th:value="${purchaseInfo.contactNumber}" class="form-control" type="text">
                </div>
            </div>  
            <div class="form-group">	
                <label class="col-sm-3 control-label">描述：</label>
                <div class="col-sm-8">
                    <input id="describe" name="describe" th:value="${purchaseInfo.describe}" class="form-control" type="text">
                </div>
            </div>  
            <div class="form-group">	
                <label class="col-sm-3 control-label">状态：</label>
                <div class="col-sm-8">
                    <input id="status" name="status" th:value="${purchaseInfo.status}" class="form-control" type="text">
                </div>
            </div>  
            <div class="form-group">	
                <label class="col-sm-3 control-label">排序：</label>
                <div class="col-sm-8">
                    <input id="orderBy" name="orderBy" th:value="${purchaseInfo.orderBy}" class="form-control" type="text">
                </div>
            </div>  
            <div class="form-group">	
                <label class="col-sm-3 control-label">所属楼盘：</label>
                <div class="col-sm-8">
                    <input id="projectName" name="projectName" th:value="${purchaseInfo.projectName}" class="form-control" type="text">
                </div>
            </div>  
            <div class="form-group">	
                <label class="col-sm-3 control-label">创建人：</label>
                <div class="col-sm-8">
                    <input id="createBy" name="createBy" th:value="${purchaseInfo.createBy}" class="form-control" type="text">
                </div>
            </div>  
            <div class="form-group">	
                <label class="col-sm-3 control-label">创建时间：</label>
                <div class="input-group date col-sm-8"> <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    <input type="text" id="createTime" name="createTime" class="form-control" name="createTime" value="2000-01-01" th:value="${#dates.format(purchaseInfo.createTime,'yyyy-MM-dd')}">
                </div>
            </div>  
                 
			<div class="form-group">
				<div class="form-control-static col-sm-offset-9">
					<button type="submit" class="btn btn-primary">提交</button>
					<button th:onclick="'javascript:layer_close()'" class="btn btn-danger" type="button">关闭</button>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
	<script th:src="@{/eagledata/business/purchaseInfo/edit.js}"></script>
        <link href="/ajax/libs/datapicker/datepicker3.css" th:href="@{/ajax/libs/datapicker/datepicker3.css}" rel="stylesheet"/>
    <script th:src="@{/js/jquery-ui-1.10.4.min.js}"></script>
    <script th:src="@{/ajax/libs//datapicker/bootstrap-datepicker.js}"></script>
    <script>$(".input-group.date").datepicker({todayBtn: "linked",keyboardNavigation: !1,forceParse: !1,calendarWeeks: !0,autoclose: !0});</script>
    </body>
</html>
